def sumNum(a, b):
    return a + b


print(sumNum(1, 2))

# lambda表达式  默认是return
sum_num = lambda a=2, b=2: a + b
print(sum_num(1))


def maxNum(a, b):
    if a > b:
        return a
    else:
        return b


print(maxNum(2, 31))
max_num = lambda a, b: a if a > b else b
print(max_num(22, 33))
num1=(lambda a, b: a if a > b else b)(22,45)
print(num1)
